package cn.hdu.liang.core.service.country;

import cn.hdu.liang.core.bean.country.City;
import cn.hdu.liang.core.query.country.CityQuery;
import cn.itcast.common.page.Pagination;

import java.util.List;

public interface CityService {

    public Integer addCity(City city);

    public City getCityByKey(Integer id);

    public List<City> getCitysByKeys(List<Integer> idList);

    public Integer deleteByKey(Integer id);

    public Integer deleteByKeys(List<Integer> idList);

    public Integer updateCityByKey(City city);

    public Pagination getCityListWithPage(CityQuery cityQuery);

    public List<City> getCityList(CityQuery cityQuery);
}
